package com.ymx.darling.generater.config;

/**
 * 策略配置
 * @author 爱Java的小于
 */
public class StrategyConfig {
    private boolean lombok;
    private boolean springApplication = false;
    private boolean ignoreEntity = false;
    private boolean ignoreMapper = false;
    private boolean ignoreService = false;
    private String ignoreTablePrefix;
    private String entityPackageName = "entity";
    private String mapperPackageName = "mapper";
    private String servicePackageName = "service";

    public StrategyConfig setIgnoreTablePrefix(String ignoreTablePrefix) {
        this.ignoreTablePrefix = ignoreTablePrefix;
        return this;
    }

    public String getIgnoreTablePrefix() {
        return ignoreTablePrefix;
    }

    public String getEntityPackageName() {
        return entityPackageName;
    }

    public StrategyConfig setEntityPackageName(String entityPackageName) {
        this.entityPackageName = entityPackageName;
        return this;
    }

    public String getMapperPackageName() {
        return mapperPackageName;
    }

    public StrategyConfig setMapperPackageName(String mapperPackageName) {
        this.mapperPackageName = mapperPackageName;
        return this;
    }

    public String getServicePackageName() {
        return servicePackageName;
    }

    public StrategyConfig setServicePackageName(String servicePackageName) {
        this.servicePackageName = servicePackageName;
        return this;
    }

    public boolean isLombok() {
        return lombok;
    }

    public StrategyConfig setLombok(boolean lombok) {
        this.lombok = lombok;
        return this;
    }

    public boolean isSpringApplication() {
        return springApplication;
    }

    public StrategyConfig setSpringApplication(boolean springApplication) {
        this.springApplication = springApplication;
        return this;
    }

    public boolean isIgnoreEntity() {
        return ignoreEntity;
    }

    public StrategyConfig setIgnoreEntity(boolean ignoreEntity) {
        this.ignoreEntity = ignoreEntity;
        return this;
    }

    public boolean isIgnoreMapper() {
        return ignoreMapper;
    }

    public StrategyConfig setIgnoreMapper(boolean ignoreMapper) {
        this.ignoreMapper = ignoreMapper;
        return this;
    }

    public boolean isIgnoreService() {
        return ignoreService;
    }

    public StrategyConfig setIgnoreService(boolean ignoreService) {
        this.ignoreService = ignoreService;
        return this;
    }
}
